﻿<link rel="stylesheet" href="${ctx}/common/common.css" />
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!--主体内容层-->

<!--主体内容层-->
<!--生产信息-->

<div class="layui-row layui-col-space15">
  <div class="layui-add-line"></div>
  <fieldset class="layui-elem-field layui-field-title" style="margin: 0px">
    <legend class="layui-add-title">生产信息</legend>
  </fieldset>
  <div class="layui-col-md12">
    <table class="layui-table">
      <thead>
        <tr>
          <th>加工单编号</th>
          <th>生产批次</th>
          <th>产品名称</th>
          <th>产品标准号</th>
          <th>规格/单位</th>
          <th>生产日期</th>
          <th>生产车间</th>
          <th>生产产线</th>
          <th>创建日期</th>
        </tr>
      </thead>
      <tbody>
        <c:if test="${!empty infoMap.wId}">
          <tr>
            <td>${infoMap.wCode}</td>
            <td>${infoMap.bCode}</td>
            <td>${infoMap.pName}</td>
            <td>${infoMap.standard_num}</td>
            <td>${infoMap.specifications}/${infoMap.unit}</td>
            <td>${infoMap.p_date}</td>
            <td>${infoMap.workshopName}</td>
            <td>${infoMap.proLineName}</td>
            <td><fmt:formatDate pattern="yyyy-MM-dd" value="${infoMap.create_time}" /></td>
          </tr>
        </c:if>
      </tbody>
    </table>
    <c:if test="${empty infoMap.wId}">
      <div style="text-align: center">无数据</div>
    </c:if>
  </div>
</div>

<!--入库信息-->
<div class="layui-row layui-col-space15">
  <div class="layui-add-line"></div>
  <fieldset class="layui-elem-field layui-field-title" style="margin: 0px">
    <legend class="layui-add-title">入库信息</legend>
  </fieldset>
  <div class="layui-col-md12">
    <table class="layui-table">
      <thead>
        <tr>
          <th>入库单号</th>
          <th>产品名称</th>
          <th>产品标准号</th>
          <th>规格/单位</th>
          <th>入库时间</th>
          <th>入库人</th>
          <th>入库数量</th>
        </tr>
      </thead>
      <tbody>
        <c:if test="${!empty infoMap.idId}">
          <tr>
            <td>${infoMap.iCode}</td>
            <td>${infoMap.pName}</td>
            <td>${infoMap.standard_num}</td>
            <td>${infoMap.specifications}/${infoMap.unit}</td>
            <td><fmt:formatDate pattern="yyyy-MM-dd" value="${infoMap.instockDate}" /></td>
            <td>${infoMap.instockPerson}</td>
            <td>${infoMap.inQuantity}</td>
          </tr>
        </c:if>
      </tbody>
    </table>
    <c:if test="${empty infoMap.idId}">
      <div style="text-align: center">无数据</div>
    </c:if>
  </div>
</div>

<!--出库信息-->
<div class="layui-row layui-col-space15">
  <div class="layui-add-line"></div>
  <fieldset class="layui-elem-field layui-field-title" style="margin: 0px">
    <legend class="layui-add-title">出库信息</legend>
  </fieldset>
  <div class="layui-col-md12">
    <table class="layui-table">
      <thead>
        <tr>
          <th>出库单编号</th>
          <th>生产批次</th>
          <th>产品名称</th>
          <th>产品标准号</th>
          <th>规格/单位</th>
          <th>出库仓库</th>
          <th>出库人</th>
          <th>出库日期</th>
          <th>出库数量</th>
        </tr>
      </thead>
      <tbody>
        <c:if test="${!empty infoMap.odId}">
          <tr>
            <td>${infoMap.oCode}</td>
            <td>${infoMap.bCode}</td>
            <td>${infoMap.pName}</td>
            <td>${infoMap.standard_num}</td>
            <td>${infoMap.specifications}/${infoMap.unit}</td>
            <td>${infoMap.warehouseName}</td>
            <td>${infoMap.outstockPerson}</td>
            <td><fmt:formatDate pattern="yyyy-MM-dd" value="${infoMap.outstockDate}" /></td>
            <td>${infoMap.outQuantity}</td>
          </tr>
        </c:if>
      </tbody>
    </table>
    <c:if test="${empty infoMap.odId}">
      <div style="text-align: center">无数据</div>
    </c:if>
  </div>
</div>

<!--流通信息-->
<div class="layui-row layui-col-space15">
  <div class="layui-add-line"></div>
  <fieldset class="layui-elem-field layui-field-title" style="margin: 0px">
    <legend class="layui-add-title">流通信息</legend>
  </fieldset>
  <div class="layui-col-md12">
    <table class="layui-table">
      <thead>
        <tr>
          <th>销货单编号</th>
          <th>客户</th>
          <th>产品名称</th>
          <th>产品标准号</th>
          <th>规格/单位</th>
          <th>联系人</th>
          <th>联系电话</th>
          <th>收货地址</th>
          <th>订单日期</th>
        </tr>
      </thead>
      <tbody>
        <c:if test="${!empty infoMap.sId}">
          <tr>
            <td>${infoMap.sCode}</td>
            <td>${infoMap.cName}</td>
            <td>${infoMap.pName}</td>
            <td>${infoMap.standard_num}</td>
            <td>${infoMap.specifications}/${infoMap.unit}</td>
            <td>${infoMap.contacts}</td>
            <td>${infoMap.phone}</td>
            <td>${infoMap.rec_address}</td>
            <td>${infoMap.order_date}</td>
          </tr>
        </c:if>
      </tbody>
    </table>
    <c:if test="${empty infoMap.sId}">
      <div style="text-align: center">无数据</div>
    </c:if>
  </div>
</div>
